package com.yesido.springcloud.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @program: my-study
 * @description:
 * @author: yuliang
 * @create: 2021-06-07 16:55
 */
@Configuration
public class RestTemplateConfig {
    /**
     * 配置ribbon实现负载均衡
     * @return
     */
    @Bean
    public RestTemplate restTemplate(){
        return  new RestTemplate();
    }
}